/*
 * @Author: life 2145887855@qq.com
 * @Date: 2025-05-03 13:56:21
 * @LastEditors: life 2145887855@qq.com
 * @LastEditTime: 2025-05-22 01:02:26
 * @FilePath: \vue2024\src\api\login\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import axios, { AxiosResponse } from 'axios';

// 登录请求数据类型
export interface LoginReqVO {
    mobile: string;
    password: string;
}

// 用户 API
export const LoginApi = {

// 登录
login: async (params: LoginReqVO): Promise<AxiosResponse> => {
    return await axios.post('http://localhost:48080/app-api/member/auth/applogin', params);
},
//个人收藏
getFavorites: async (): Promise<AxiosResponse> => {
  return await axios.get('http://localhost:48080/app-api/favorites/favorites/page');
}
};    